﻿<%@ Page Title="Change Password" Theme="Mobile" Language="C#" MasterPageFile="~/ProductMaster.master"
    AutoEventWireup="true" CodeBehind="ChangePass.aspx.cs" Inherits="MobileShop.ChangePass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="bodyContent" runat="server">
    <table style='margin: auto' cellspacing="3">
        <tr>
            <td>
                <label class='normal'>
                    Current Password</label>
                <label class='required'>
                    *</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" ValidationGroup="Login"
                    Style='width: 200px'></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <label class='normal'>
                    New Password</label>
                <label class='required'>
                    *</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID="txtNewPassword" runat="server" TextMode="Password" ValidationGroup="Login"
                    Style='width: 200px'></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <label class='normal'>
                    Confirm Password</label>
                <label class='required'>
                    *</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID="txtConfirm" runat="server" TextMode="Password" ValidationGroup="Login"
                    Style='width: 200px'></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <br />
                <asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_OnClick" ValidationGroup="Save"
                    Text="Update" />
                <br />
                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="<br/>Password not matched. Please retype."
                    Display="Dynamic" class='required' ControlToCompare="txtNewPassword" ControlToValidate="txtConfirm"
                    ValidationGroup="Login"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="reqEmail" runat="server" Text="" ErrorMessage=""
                    ValidationGroup="Login" ControlToValidate="txtNewPassword"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="reqPassword" runat="server" Text="" ErrorMessage=""
                    ValidationGroup="Login" ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
                <asp:Label Visible="false" ID="lblNote" runat="server" class='note'>Password changed successfully!</asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>
